import Layout from '@/layout/project';

export default [
  {
    path: '/',
    component: Layout,
    name: 'ProjectManager',
    meta: {
      title: '项目后台',
      icon: 'dashboard',
    },
    children: [
      {
        path: '/project/:id/tmpl',
        component: () => import('@/views/project/tmpl/index'),
        name: 'BudgetTmpl',
        meta: {
          title: '模板',
          icon: 'icon icon-module iconclass',
          noCache: true,
        },
      },
      {
        path: '/project/:id/product',
        component: () => import('@/views/project/product/index'),
        name: 'ProjectProduct',
        meta: {
          title: '产品',
          icon: 'icon icon-product iconclass',
          noCache: true,
        },
      },
      {
        // path: '/project/:id/site/:productId',
        path: '/project/:id/product/:productId',
        component: () => import('@/views/project/budget/siteList'),
        name: 'BudgetSiteList',
        hidden: true,
        meta: { title: '概预算计算', icon: 'dashboard', activeMenu: '/project/:id/product', noCache: true },
      },
      {
        path: '/project/:id/data',
        component: () => import('@/views/project/data/index'),
        name: 'DataDetail',
        meta: {
          title: '站段',
          icon: 'icon icon-downtodesk iconclass',
          noCache: true,
        },
      },
      {
        path: '/project/:id/load-budget',
        component: () => import('@/views/project/load-budget/index'),
        name: 'LoadBudget',
        meta: {
          title: '下载',
          icon: 'icon icon-downtodesk iconclass',
          noCache: true,
        },
      },
      /* {
        path: '/project/:id/loadbudget',
        component: () => import('@/views/project/loadbudget/index'),
        name: 'ProjectLoadBudget',
        meta: {
          title: '预算下载',
          icon: 'user',
          noCache: true
        }
      }, */
      {
        // path: '/project/:id/tmpl/:tmplId',
        path: '/project/:id/tmpl/:tmplId/:tag/:isPublish',
        component: () => import('@/views/project/tmpl/config'),
        name: 'BudgetTmplEdit',
        hidden: true,
        meta: { title: '修改预算模板', icon: 'dashboard', activeMenu: '/project/:id/tmpl', noCache: true },
      },
      {
        path: '/project/:id/tmpl/form',
        component: () => import('@/views/project/tmpl/form'),
        name: 'BudgetTmplAdd',
        hidden: true,
        meta: { title: '添加预算模板', icon: 'dashboard', activeMenu: '/project/:id/tmpl', noCache: true },
      },
      /* {
        path: '/project/:id/budget',
        component: () => import('@/views/project/budget/index'),
        name: 'ProjectBudget',
        hidden: true,
        meta: {
          title: '预算',
          icon: 'dashboard',
          noCache: true
        }
      },
      {
        path: '/project/:id/site/:productId',
        component: () => import('@/views/project/budget/siteList'),
        name: 'BudgetSiteList',
        hidden: true,
        meta: { title: '概预算计算', icon: 'dashboard', activeMenu: '/project/:id/budget', noCache: true }
      } */
      // {
      //   path: '/project/:id/line',
      //   component: () => import('@/views/project/core/line/index'),
      //   name: 'lineIndex',
      //   meta: {
      //     title: '线路',
      //     icon: 'dashboard',
      //     noCache: true
      //   }
      // },
      // {
      //   path: '/project/:id/section',
      //   component: () => import('@/views/project/core/section/index'),
      //   name: 'sectionIndex',
      //   meta: {
      //     title: '标段',
      //     icon: 'dashboard',
      //     noCache: true
      //   }
      // },
      // {
      //   path: '/project/:id/substation',
      //   component: () => import('@/views/project/core/substation/index'),
      //   name: 'substationIndex',
      //   meta: {
      //     title: '变电站',
      //     icon: 'dashboard',
      //     noCache: true
      //   }
      // },
      // {
      //   path: '/project/:id/tower',
      //   component: () => import('@/views/project/core/tower/index'),
      //   name: 'towerIndex',
      //   meta: {
      //     title: '杆塔',
      //     icon: 'dashboard',
      //     noCache: true
      //   }
      // },
      // {
      //   path: '/project/:id/depart-type',
      //   component: () => import('@/views/project/depart-type/index'),
      //   name: 'departType',
      //   meta: {
      //     title: '部门类别',
      //     icon: 'user',
      //     noCache: true
      //   }
      // }
    ],
  },
];
